home *** CD-ROM | disk | FTP | other *** search
- # CVS $Id: input.tcl,v 1.3 1995/02/03 16:54:52 zibi Exp $
- #
- # This test that wstcl will work with even connecting to
- # wserver.
- #
- # To test type the following
- # cat /etc/termcap | wstcl input.tcl
- # You should see the file scrolling on the screen
- #
- proc echoCB {id} {
- set count [gets $id line]
-
- if { $count == -1 } {
- echo "\n\nPASSED input.tcl"
- exit 0
- }
-
- puts stdout "." nonewline
-
- VtRemoveInput $id
- VtAddInput $id echoCB
- }
-
- set f [open /etc/termcap]
-
- VtAddInput $f echoCB
-
- VtMainLoop
-